﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Views.Layout;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraLayout;
using DevExpress.XtraLayout.Customization;
using DevExpress.XtraLayout.Utils;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraEditors.Controls;

using System.Data.SqlClient;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.Utils;
using DevExpress.XtraGrid.Localization;

using System.IO;
using System.Reflection;
using DevExpress.XtraGrid.Views.Layout.Events;


namespace Giao_dien_2.UserControl
{
    public partial class NHANVIENHANHCHINH : DevExpress.XtraEditors.XtraUserControl
    {
        DBGiaoNhan data = new DBGiaoNhan();
        public NHANVIENHANHCHINH()
        {
            InitializeComponent();
        }
        public static Image byteArrayToImage(byte[] byteArray)
        {
            System.IO.MemoryStream MS = new System.IO.MemoryStream(byteArray);
            Image kq = Image.FromStream(MS);
            return kq;
        }
        
        private void gridControl1_Load(object sender, EventArgs e)
        {
            nHANVIENHCTableAdapter.Fill(dBGiaoNhanDataSet.NHANVIENHC);

        }
        private void btn_nap_Click(object sender, EventArgs e)
        {
            gridControl1_Load(sender, e);

        }

       
     
    }
}
